package cardsdk

import (
	"os"

	"gitee.com/fhe-search/nfhedecd/deviceManage"
)

func UseHardWare(secretKeyBasePath string) {
	if _, err := os.Stat("/dev/decd1"); os.IsNotExist(err) {
		panic("decd driver not load")
	}
	deviceManage.NFHE_DECD_OpenDevice()
	NFHEDECDInit(secretKeyBasePath)
}
